package com.labreeze.spring.aop.aspect;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.labreeze.spring.aop.advice.Waiter;

public class SpringXmlAspectJ {

	public static void main(String[] args) {
		ApplicationContext ac=new ClassPathXmlApplicationContext("classpath:applicationContext.xml");
		Waiter waiter=(Waiter)ac.getBean("waiter");
		waiter.greetTo("mary");
		
	}
	
}
